<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:composite="http://java.sun.com/jsf/composite"
      xmlns:common="http://java.sun.com/jsf/composite/components/common"
      xmlns:c="http://java.sun.com/jsp/jstl/core">

    <!-- INTERFACE -->
    <composite:interface>
        <composite:attribute name="title" default = "Rescriptus"/>
    </composite:interface>

    <!-- IMPLEMENTATION -->
    <composite:implementation>
        <div class = "menutop">
            <h:graphicImage value = "#{resource['images:icon.png']}" styleClass = "icon"/>
            <span class = "title">#{cc.attrs.title}</span>
            <span class = "hello">
                <h:outputText rendered="#{loginJSFBean.logged}" value="Hello, " />
                <h:outputText rendered="#{loginJSFBean.logged}" value="#{loginJSFBean.userInfo.name} #{loginJSFBean.userInfo.surname}" styleClass = "helloRealname #{loginJSFBean.signatureStyle}" />
                <h:outputText rendered="#{loginJSFBean.logged}" value=" (#{loginJSFBean.userInfo.username})" styleClass = "helloUsername" />
                <h:outputText rendered="#{loginJSFBean.logged}" value="!" /></span>
            <common:mainmenu styleClass = "menu inline"/>
        </div>
    </composite:implementation>


</html>